package com.lili.model.order.entity.aftersale;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sun.istack.internal.NotNull;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;


import java.util.Date;

import static com.baomidou.mybatisplus.annotation.IdType.ASSIGN_ID;

/**
 * 售后原因
 *
 * @author Bulbasaur
 * @since 2021/7/9 1:39 上午
 */
@Data
@TableName("li_after_sale_reason")
@ApiModel(value = "售后原因")
public class AfterSaleReason  {
    @TableId(value ="id" ,type = ASSIGN_ID)
    private  Long id;
    @NotNull
    @ApiModelProperty(value = "售后原因")
    private String reason;

    @ApiModelProperty(value = "原因类型")
     @NotNull
    private String serviceType;
    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "关联详情,要么售后，要么投诉")
    private Long reasonId;


}
